package com.itheima.test0905.test51;
//运动员类
public class athletes extends person{
    private String classes;

    public athletes(String id, String name, String gender, String age, String classes) {
        super(id, name, gender, age);
        this.classes = classes;
    }

    public athletes() {

    }

    @Override
    public void eat() {
        System.out.println(this.getAge() + "岁" + this.getGender() + "性" + this.getName() + "吃营养餐");
    }
}
